﻿<c:WindowExt x:Class="personalplaner.gui.common.views.InitWizard"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:c="clr-namespace:personalplaner.common.controls;assembly=personalplaner.common"
        xmlns:conv="clr-namespace:personalplaner.common.converters;assembly=personalplaner.common"
        xmlns:vm="clr-namespace:personalplaner.common.mvvm.factory;assembly=personalplaner.common"
        xmlns:fac="clr-namespace:personalplaner.gui.common.viewmodels.factories"
        vm:ViewModelLoader.FactoryType="{x:Type fac:InitWizardModelFactory}"
        xmlns:p="clr-namespace:personalplaner.gui.Properties"
        Icon="/personalplaner.gui;component/resources/images/Personalplaner.ico"
        ShowInTaskbar="True"
        ResizeMode="NoResize"
        WindowStartupLocation="CenterScreen" 
        
        Height="520" Width="700"
        Foreground="#E1000000"><!--Title="Personalplaner"-->

    <Window.Background>
        <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
            <LinearGradientBrush.GradientStops>
                <GradientStop Color="White" Offset="0"/>
                <GradientStop Color="White" Offset="0.6"/>
                <GradientStop Color="#FFEDEDED" Offset="1"/>
            </LinearGradientBrush.GradientStops>
        </LinearGradientBrush>
    </Window.Background>

    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/personalplaner.common;component/resources/styles/WhiteStyleTemplates.xaml"/>
                <ResourceDictionary>
                    <BooleanToVisibilityConverter x:Key="boolVisConv"/>
                    <conv:BoolToInvertVisibilityConverter x:Key="boolInvVisConv"/>
                </ResourceDictionary>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Window.Resources>

    <Grid Margin="5">
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>

        <ContentControl Content="{Binding SelectedView}" Margin="10,2,10,2" />
        
        
        <StackPanel Orientation="Horizontal" Grid.Row="2" Grid.ColumnSpan="4" HorizontalAlignment="Right" Margin="0,10,50,10">
            <Button MinWidth="60" Margin="5" IsDefault="True" Command="{Binding PreviousCommand}">
                <!--<TextBlock Text="{x:Static p:Resources.Back}"/>-->
                <TextBlock Text="&lt;" FontWeight="ExtraBold" VerticalAlignment="Center"/>
            </Button>
            <Button MinWidth="60" Margin="5" IsDefault="True" Command="{Binding NextCommand}" Visibility="{Binding IsEndOfWizard, Converter={StaticResource boolInvVisConv}}">
                <!--<TextBlock Text="{x:Static p:Resources.Next}"/>-->
                <TextBlock Text="&gt;" FontWeight="ExtraBold" VerticalAlignment="Center"/>
            </Button>
            <Button MinWidth="60" Margin="5" IsDefault="True" Command="{Binding OkCommand}" Visibility="{Binding IsEndOfWizard, Converter={StaticResource boolVisConv}}">
                <TextBlock Text="{x:Static p:Resources.Ok}"/>
            </Button>
            <Button MinWidth="60" Margin="5" IsCancel="True" Command="{Binding CancelCommand}">
                <TextBlock Text="{x:Static p:Resources.Cancel}"/>
            </Button>
        </StackPanel>
    </Grid>
</c:WindowExt>
